package com.my.autoSpi;

import com.google.auto.service.AutoService;

import java.util.Locale;

/**
 * spi
 * https://www.cnblogs.com/jy107600/p/11464985.html
 * @author timo 2021/2/19
 */
@AutoService(TranslationService.class)
public class GoogleTranslationServiceProvider implements TranslationService {
    @Override
    public String translate(String message, Locale from, Locale to) {
        return "google";
    }

}

